<?php
if (! defined ( 'BASEPATH' ))
	exit ( 'No direct script access allowed' );

class Welcome extends CI_Controller {
	public function index() {
		$eData = array();
		//街道
		$this->db->where('isrecommend',1);
		$eData['streetList'] = $this->db->get("street",4,0)->result_array();
		//小店
		$this->db->where('isrecommend',1);
		$eData['storeList'] = $this->db->get("store",12,0)->result_array();
		
		$this->db->order_by ( 'sort', 'asc' );
		$this->db->order_by ( 'id', 'desc' );
		$this->db->where ( 'cid', 1 );
		$eData['advList'] = $this->db->get ( 'adv',5,0)->result_array ();
		
		$this->load->view('index',$eData);
	}
}
